package org.springblade.modules.sga.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.springblade.modules.policy.entity.PolicyDraw;

@Data
public class SgaPolicyDrawPushVo {
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;
	/**
	 * 办结时限
	 */
	private Integer completionTime;
	/**
	 * 主管部门
	 */
	private String implemention;
	/**
	 * 是否免审即享
	 */
	private Integer isApply;
	/**
	 * 事项名称
	 */
	private String name;
	/**
	 * 申报条件
	 */
	private String acceptCondition;
	/**
	 * 申报时间截至日期
	 */
	private String declareEnd;
	/**
	 * 政策ids
	 */
	private String policys;

	/**
	 * 匹配度
	 */
	private Double similarity;

	public SgaPolicyDrawPushVo(PolicyDraw policyDraw){
		this.id = policyDraw.getId();
		this.completionTime = policyDraw.getCompletionTime();
		this.implemention = policyDraw.getImplemention();
		this.isApply = policyDraw.getIsApply();
		this.name = policyDraw.getName();
		this.acceptCondition = policyDraw.getAcceptCondition();
		this.declareEnd = policyDraw.getDeclareEnd();
		this.policys = policyDraw.getPolicys();
	}
}
